#include <stdio.h>

int main(int argc, char *argv[])
{
    int input, input_num;

    printf("Please input a number(00):\n");
    input_num = scanf("%d", &input);

    printf("input=%d input count = %d\n", input, input_num);


    printf("Please input a hex number(ff):\n");
    input_num = scanf("%x", &input);
    printf("input=%d input count = %d\n", input, input_num);


    int y, m, d;
    printf("Please input a date(20200908):\n");
    input_num = scanf("%4d%2d%2d", &y, &m, &d);
    printf("input=%d-%d-%d input count = %d\n", y, m, d, input_num);

    char a, b, c;
    printf("Please input 3 character(abc):\n");
    input_num = scanf("%c%c%c", &a, &b, &c);
    printf("input=%d %d %d input count = %d\n", a, b, c, input_num);

    return 0;
}
